package myjava.k_annotation.service;

import myjava.k_annotation.annotation.AnoField;
import myjava.k_annotation.annotation.AnoTable;
import myjava.k_annotation.mapper.UserMapper;
import myjava.k_annotation.mapper.impl.UserMapperImpl;
import myjava.k_annotation.pojo.User;

/**
 * @Auther: cty
 * @Date: 2020/3/2 21:04
 * @Description:  注解实现ORM（Object Relationship Mapping）
 * ORM(Object Relationship Mapping) 对象关系映射
 *      类和表结构对应
 *      属性和字段对应
 *      对象和记录对应
 * @version: 1.0
 */
public class AnnotationImplORM {
    private static UserMapper userMapper = new UserMapperImpl();

    public static void main(String[] args) {
        // 调用mapper方法实现创建user数据表
        userMapper.CreateTable(User.class);

    }
}
